<template>
    <Player v-if="playlist.length > 0" :playlist="playlist" />
    <div v-else class="noPlaylist">
        没有内容
    </div>
</template>

<script lang="ts" setup>
import { ref } from 'vue';
import Player from '@/components/videoPlayer/index.vue'
import { loadPlayList } from '@/api/index'
// 获取播放列表
// 开屏图片
const playlist = ref([]);
 loadPlayList().then(({data,code}: any) => {
   if(code === 0){
    playlist.value = data.list
   } 
})

</script>

<style></style>